import { requestType } from '~/config/enum.config';

const SERVICE = 'domain-service';
const CONTROLLER = 'caseLegalRecordController';

export default {
  // 新增诉讼记录
  addCaseLegalRecord: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'addCaseLegalRecord',
    type: requestType.Post,
  },
  // 修改诉讼记录
  editCaseLegalRecord: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'editCaseLegalRecord',
    type: requestType.Post,
  },
  // 分页查询诉讼记录
  getCaseLegalRecord: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getCaseLegalRecord',
    type: requestType.Get,
  },
  // 查看诉讼详情
  getCaseLegalRecordById: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getCaseLegalRecordById',
    type: requestType.Get,
  },
  // 查看诉讼附件详情(文件列表)
  getCaseLegalRecordFileById: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getCaseLegalRecordFileById',
    type: requestType.Get,
  },
  // 查看诉讼附件详情(文件列表)
  getCaseLegalRecordFileByCaseId: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getCaseLegalRecordFileByCaseId',
    type: requestType.Get,
  },
  // 讼诉附件记录删除(文件列表)
  caseLegalRecordFile: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'caseLegalRecordFile',
    type: requestType.Delete,
  },
}
